<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改衣服定制订单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-order-edit" th:object="${clProduct}">
            <input name="numId" th:field="*{numId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">分类：</label>
                <div class="col-sm-8">
                    <input name="vcPhone" disabled th:field="*{categoryName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label ">类型：</label>
                <div class="col-sm-8">
                    <input name="vcPhone" disabled th:field="*{vcCtypeName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label ">学校：</label>
                <div class="col-sm-8">
                    <input name="vcPhone" disabled th:field="*{vcSchoolName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label ">款式：</label>
                <div class="col-sm-8">
                    <input name="vcPhone" disabled th:field="*{vcModelName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">姓名：</label>
                <div class="col-sm-8">
                    <input name="vcName" disabled th:field="*{vcName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话：</label>
                <div class="col-sm-8">
                    <input name="vcPhone" th:field="*{vcPhone}" class="form-control" isPhone type="number" required>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数量：</label>
                <div class="col-sm-8">
                    <input name="numNum" th:field="*{numNum}" class="form-control" type="number" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">状态:</label>
                <div class="col-sm-8">
                    <select name="numState" class="form-control m-b" th:with="type=${@dict.getType('numOrderState')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{numState}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">价格：</label>
                <div class="col-sm-8">
                    <input name="numPrice" disabled th:value="${clProduct.numProductPrice/100}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="vcNotes" th:field="*{vcNotes}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">后台备注：</label>
                <div class="col-sm-8">
                    <input name="vcSignDesc" th:field="*{vcSignDesc}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付状态</label>
                <div class="col-sm-8">
                    <select name="numPayState" class="form-control m-b" th:with="type=${@dict.getType('numPayState')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{numPayState}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付方式 ：</label>
                <div class="col-sm-8">
                    <select name="numPayType" class="form-control m-b" th:with="type=${@dict.getType('numPayType')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{numPayType}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "clothing/order";
        $("#form-order-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-order-edit').serialize());
            }
        }
    </script>
</body>
</html>